projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
987b569
)
Fix testmenubutton
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 26 Apr 2014 21:47:21 +0000
(17:47 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 26 Apr 2014 21:49:52 +0000
(17:49 -0400)
The menu model examples was messing up the order of its items.
tests/testmenubutton.c
patch
|
blob
|
history
diff --git
a/tests/testmenubutton.c
b/tests/testmenubutton.c
index fc3e1e96cf70f8ab4cec289d328d5fead17e7c6c..a48d7ea9189f1b33a43bceb0c4a08e0abde2c7bc 100644
(file)
--- a/
tests/testmenubutton.c
+++ b/
tests/testmenubutton.c
@@
-141,7
+141,7
@@
int main (int argc, char **argv)
item = g_menu_item_new (label, NULL);
if (i == 3)
g_menu_item_set_attribute (item, "icon", "s", "preferences-desktop-locale-symbolic");
- g_menu_insert_item (menu,
i - 1
, item);
+ g_menu_insert_item (menu,
0
, item);
g_object_unref (item);
g_free (label);
}